<template>
  <div class="cade">
    <div class="b">
      <div class="tx">
        <img :src="user.pic" alt="" />
      </div>
      <div class="cade-text">
        {{ user.name }}
        <a href="">面试</a>
        <span>{{ user.position }}</span>
        <div class="age">{{ user.age }}岁</div>
      </div>
    </div>
    <div class="cade-phone">电话：{{user.phone}}</div>
  </div>
</template>

<script>
/**
 * 人员卡组件
 * 传入数据 data
 * {
 *      pic:头像
        name: "人员名",
        type: 状态
        age: 年龄，
        phone:联系方式
        position: 职位
    }
 */
export default {
  name: "PersonnelCard",
  props: {
    data: Object,
  },
  components: {},
  data() {
    return {
      user: true,
    };
  },

  mounted() {
    this.user = this.data;
  },
  methods: {},
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less" >
.cade {
  background: #ffffff;
  margin: 20px 0;
  padding: 20px;
  font-size: 24px;
  color: #999999;
  .b{
    display: flex;
    .tx {
      width: 72px;
      height: 72px;
      border-radius: 4px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .cade-text {
      width: 80%;
      padding: 0 10px;
      font-size: 28px;
      color: #000000;
      a{
        float: right;
        margin-right: 3px;
        color: #288EF4;
        font-size: 24px;
      }
      span {
        color: #999999;
        font-size: 24px;
        padding: 7px 10px 0 10px;
      }
      .age{
        color: #999999;
        font-size: 24px;
        padding-top: 3px;
      }
    }
  }
  .cade-phone{
    font-size: 26px;
    color: #000000;
    padding: 15px 0 0 0;
  }
}
</style>
